/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.upao.ocw;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 *
 * @author Rey
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Instructor {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    
    private Long id_user;
    private String nombres;
    private String ape_paterno;
    private String ape_materno;
    private String grado;
    private String especialidad;
    private String correo;
    
    public Instructor(){
        this.id=0L;
        this.id_user=0L;
        this.nombres="";
        this.ape_paterno="";
        this.ape_materno="";
        this.grado="";
        this.especialidad="";
        this.correo="";
    }
    
    public Instructor(Long idUser, String nom, String ape_pat, String ape_mat, String grad, String espe, String corre){
        this.id_user=idUser;
        this.nombres=nom;
        this.ape_paterno=ape_pat;
        this.ape_materno=ape_mat;
        this.grado=grad;
        this.especialidad=espe;
        this.correo=corre;
    }


    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getId_user() {
        return id_user;
    }
    public void setId_user(Long id_user) {
        this.id_user = id_user;
    }
    public String getNombres() {
        return nombres;
    }
    public void setNombres(String nombres) {
        this.nombres = nombres;
    }
    public String getApe_paterno() {
        return ape_paterno;
    }
    public void setApe_paterno(String ape_paterno) {
        this.ape_paterno = ape_paterno;
    }
    public String getApe_materno() {
        return ape_materno;
    }
    public void setApe_materno(String ape_materno) {
        this.ape_materno = ape_materno;
    }
    public String getGrado() {
        return grado;
    }
    public void setGrado(String grado) {
        this.grado = grado;
    }
    public String getEspecialidad() {
        return especialidad;
    }
    public void setEspecialidad(String especialidad) {
        this.especialidad = especialidad;
    }
    public String getCorreo() {
        return correo;
    }
    public void setCorreo(String correo) {
        this.correo = correo;
    }
}
